package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.CrmCustomerDistributionRecordAddDTO;
import org.jsola.hr.dto.CrmCustomerDistributionRecordUpdateDTO;
import org.jsola.hr.query.CrmCustomerDistributionRecordQuery;
import org.jsola.hr.vo.CrmCustomerDistributionRecordListVO;
import org.jsola.hr.vo.CrmCustomerDistributionRecordVO;

import java.util.List;

/**
 * 客户分配记录表
 *
 * @author zhr
 */
@Api(tags = "hr-客户分配记录表")
public interface ICrmCustomerDistributionRecordControllerAPI {

    /**
     * 新增客户分配记录表
     * @param crmCustomerDistributionRecordAddDTO 客户分配记录表新增实体
     * @return 客户分配记录表展示对象
     */
    @ApiOperation(value = "新增客户分配记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "crmCustomerDistributionRecordAddDTO", dataType = "CrmCustomerDistributionRecordAddDTO", value = "新增客户分配记录表", paramType = "body")
    })
    Result<CrmCustomerDistributionRecordVO> save(CrmCustomerDistributionRecordAddDTO crmCustomerDistributionRecordAddDTO);


    /**
     * 修改客户分配记录表
     * @param crmCustomerDistributionRecordUpdateDTO 客户分配记录表
     * @return 更新数量
     */
    @ApiOperation(value = "修改客户分配记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "crmCustomerDistributionRecordUpdateDTO", dataType = "CrmCustomerDistributionRecordUpdateDTO", value = "修改客户分配记录表", paramType = "body")
    })
    Result<Integer> update(CrmCustomerDistributionRecordUpdateDTO crmCustomerDistributionRecordUpdateDTO);




    /**
     * 删除单个客户分配记录表，彻底删除
     * @param crmCustomerDistributionRecordId 客户分配记录表id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个客户分配记录表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "crmCustomerDistributionRecordId", dataType = "String", value = "客户分配记录表id", paramType = "path")
    })
    Result<Integer> delete(String crmCustomerDistributionRecordId);


    /**
     * 批量删除客户分配记录表，彻底删除
     * @param crmCustomerDistributionRecordIds 客户分配记录表id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除客户分配记录表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "crmCustomerDistributionRecordIds", dataType = "String[]", value = "客户分配记录表id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] crmCustomerDistributionRecordIds);


    /**
     * 根据客户分配记录表id查询客户分配记录表详情
     * @param crmCustomerDistributionRecordId 客户分配记录表id
     * @return 客户分配记录表详情
     */
    @ApiOperation(value="根据客户分配记录表id查询客户分配记录表详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "crmCustomerDistributionRecordId", dataType = "String", value = "客户分配记录表id", paramType = "path")
    })
    Result<CrmCustomerDistributionRecordVO> findById(String crmCustomerDistributionRecordId);


    /**
     * 查询客户分配记录表
     * @param crmCustomerDistributionRecordQuery 客户分配记录表查询参数
     * @return page
     */
    @ApiOperation(value="查询客户分配记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "crmCustomerDistributionRecordQuery", dataType = "CrmCustomerDistributionRecordQuery", value = "客户分配记录表查询参数", paramType = "query")
    })
    Result<List<CrmCustomerDistributionRecordListVO>> listAll(CrmCustomerDistributionRecordQuery crmCustomerDistributionRecordQuery);


     /**
     * 分页查询客户分配记录表
     * @param crmCustomerDistributionRecordQuery 客户分配记录表查询参数
     * @return page
     */
    @ApiOperation(value="分页查询客户分配记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "crmCustomerDistributionRecordQuery", dataType = "CrmCustomerDistributionRecordQuery", value = "客户分配记录表查询参数", paramType = "query")
    })
    Result<Page<CrmCustomerDistributionRecordListVO>> page(CrmCustomerDistributionRecordQuery crmCustomerDistributionRecordQuery);


}

